package com.mine.dao;

import java.util.List;

import com.mine.pojo.Address;


public interface AddressMapper {

	//根据用户id查询出地址列表
	public List<Address> selectAddressListByUserId(Long userId);
	
	//根据id删除某个地址
	public void deleteAddressById(Address address);
	
	//根据地址信息更新
	public void updateAddress(Address address);
	
	//根据增加地址
	public void addAddress(Address address);

	//设置为默认地址（单个地址）
	public void updatePriorityAddress(Address address);
	
	//设为默认地址并取消别的默认地址
	public void updatePriorityAddressList(List<Address> list);
}
